home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / programmierung / triton / blitzbasic / bbincludes / libraries / triton.asc next >
Text File  |  1995-08-25  |  38KB  |  1,299 lines

  1. #LIBRARIES_TRITON_H=-1
  2. ;**
  3. ;** $VER: triton.h 4.39 (24.6.95) - triton.bb2
  4. ;** Triton Release 1.3
  5. ;**
  6. ;** triton.library definitions
  7. ;**
  8. ;** (C) Copyright 1993-1994 Stefan Zeiger
  9. ;** All Rights Reserved
  10. ;** conversion to BlitzBasic2 by Philipp Lonke and Rupert Henson
  11. ;** Blitz2-Triton-Support and Infos ask phips@scout.rhein-main.de
  12. ;** or ask in the blitz mailing list. ** READ THE DOCUMENTATION! **
  13. ;**
  14.  
  15. ; NOTE: One line of a macro cannot exceed 128 chars
  16. ; (just use extra macros - see LK1 - List Kludge 1 etc.)
  17.  
  18. Macro TRITONNAME
  19. "triton.library"
  20. End Macro
  21.  
  22. #TRITON10VERSION=1
  23. #TRITON11VERSION=2
  24. #TRITON12VERSION=3
  25.  
  26. #INTUI_V36_NAMES_ONLY=-1
  27.  
  28. ; this here is an addition to the amigalibs.res where this
  29. ; newtype is not defined
  30.  
  31. NEWTYPE .AppWindow
  32.   *aw_PRIVATE.b
  33. End NEWTYPE
  34.  
  35. ;/* ////////////////////////////////////////////////////////////////////// */
  36. ;/* //////////////////////////////////////////////////////////// Macros // */
  37. ;/* ////////////////////////////////////////////////////////////////////// */
  38.  
  39. ;/* Project */
  40. ;Macro ProjectDefinition(name)
  41. ;End Macro
  42.  
  43. Macro EndProject
  44. #TAG_END
  45. End Macro
  46.  
  47. Macro WindowTitle
  48. #TRWI_Title,`1
  49. End Macro
  50.  
  51. Macro ScreenTitle
  52. #TRWI_ScreenTitle,`1
  53. End Macro
  54.  
  55. Macro WindowID
  56. #TRWI_ID,`1
  57. End Macro
  58.  
  59. Macro WindowFlags
  60. #TRWI_Flags,`1
  61. End Macro
  62.  
  63. Macro WindowPosition
  64. #TRWI_Position,`1
  65. End Macro
  66.  
  67. Macro WindowUnderscore
  68. #TRWI_Underscore,`1
  69. End Macro
  70.  
  71. Macro WindowDimensions
  72. #TRWI_Dimensions,`1
  73. End Macro
  74.  
  75. Macro WindowBackfillWin
  76. #TRWI_Backfill,#TRBF_WINDOWBACK
  77. End Macro
  78.  
  79. Macro WindowBackfillReq
  80. #TRWI_Backfill,#TRBF_REQUESTERBACK
  81. End Macro
  82.  
  83. Macro WindowBackfillNone
  84. #TRWI_Backfill,#TRBF_NONE
  85. End Macro
  86.  
  87. Macro WindowBackfillS
  88. #TRWI_Backfill,#TRBF_SHINE
  89. End Macro
  90.  
  91. Macro WindowBackfillSA
  92. #TRWI_Backfill,#TRBF_SHINE_SHADOW
  93. End Macro
  94.  
  95. Macro WindowBackfillSF
  96. #TRWI_Backfill,#TRBF_SHINE_FILL
  97. End Macro
  98.  
  99. Macro WindowBackfillSB
  100. #TRWI_Backfill,#TRBF_SHINE_BACKGROUND
  101. End Macro
  102.  
  103. Macro WindowBackfillA
  104. #TRWI_Backfill,#TRBF_SHADOW
  105. End Macro
  106.  
  107. Macro WindowBackfillAF
  108. #TRWI_Backfill,#TRBF_SHADOW_FILL
  109. End Macro
  110.  
  111. Macro WindowBackfillAB
  112. #TRWI_Backfill,#TRBF_SHADOW_BACKGROUND
  113. End Macro
  114.  
  115. Macro WindowBackfillF
  116. #TRWI_Backfill,#TRBF_FILL
  117. End Macro
  118.  
  119. Macro WindowBackfillFB
  120. #TRWI_Backfill,#TRBF_FILL_BACKGROUND
  121. End Macro
  122.  
  123. Macro CustomScreen
  124. #TRWI_CustomScreen,`1
  125. End Macro
  126.  
  127. Macro PubScreen
  128. #TRWI_PubScreen,`1
  129. End Macro
  130.  
  131. Macro PubScreenName
  132. #TRWI_PubScreenName,`1
  133. End Macro
  134.  
  135. ;V4 entry QuickHelp
  136.  
  137. Macro QuickHelpOn
  138. #TRWI_QuickHelp,`1
  139. End Macro
  140.  
  141.  
  142. ;/* Menus */
  143. Macro BeginMenu
  144. #TRMN_Title,`1
  145. End Macro
  146.  
  147. Macro MenuFlags
  148. #TRMN_Flags,`1
  149. End Macro
  150.  
  151. Macro _MenuItem
  152. #TRMN_Item,`1,#TRAT_ID,`2
  153. End Macro
  154.  
  155. Macro MenuItemC
  156. #TRMN_Item,`1,#TRMN_Flags,#TRMF_CHECKIT,#TRAT_ID,`2
  157. End Macro
  158.  
  159. Macro MenuItemCC
  160. #TRMN_Item,`1,#TRMN_Flags,#TRMF_CHECKED,#TRAT_ID,`2
  161. End Macro
  162.  
  163. Macro BeginSub
  164. #TRMN_Item,`1
  165. End Macro
  166.  
  167. Macro MenuItemD
  168. #TRMN_Item,`1,!MenuFlags{#TRMF_DISABLED},#TRAT_ID,`2
  169. End Macro
  170.  
  171. Macro _SubItem
  172. #TRMN_Sub,`1,#TRAT_ID,`2
  173. End Macro
  174.  
  175. Macro SubItemD
  176. #TRMN_Sub,`1,!MenuFlags{#TRMF_DISABLED},#TRAT_ID,`2
  177. End Macro
  178.  
  179. Macro ItemBarlabel
  180. #TRMN_Item,#TRMN_BARLABEL
  181. End Macro
  182.  
  183. Macro SubBarlabel
  184. #TRMN_Sub,#TRMN_BARLABEL
  185. End Macro
  186.  
  187. ;/* Groups */
  188. Macro HorizGroup
  189. #TRGR_Horiz,0
  190. End Macro
  191.  
  192. Macro HorizGroupE
  193. #TRGR_Horiz,#TRGR_EQUALSHARE
  194. End Macro
  195.  
  196. Macro HorizGroupS
  197. #TRGR_Horiz,#TRGR_PROPSPACES
  198. End Macro
  199.  
  200. Macro HorizGroupA
  201. #TRGR_Horiz,#TRGR_ALIGN
  202. End Macro
  203.  
  204. Macro HorizGroupEA
  205. #TRGR_Horiz,#TRGR_EQUALSHARE OR #TRGR_ALIGN
  206. End Macro
  207.  
  208. Macro HorizGroupSA
  209. #TRGR_Horiz,#TRGR_PROPSPACES OR #TRGR_ALIGN
  210. End Macro
  211.  
  212. Macro HorizGroupC
  213. #TRGR_Horiz,#TRGR_CENTER
  214. End Macro
  215.  
  216. Macro HorizGroupEC
  217. #TRGR_Horiz,#TRGR_EQUALSHARE OR #TRGR_CENTER
  218. End Macro
  219.  
  220. Macro HorizGroupSC
  221. #TRGR_Horiz,#TRGR_PROPSPACES OR #TRGR_CENTER
  222. End Macro
  223.  
  224. Macro HorizGroupAC
  225. #TRGR_Horiz,#TRGR_ALIGN OR #TRGR_CENTER
  226. End Macro
  227.  
  228. Macro HorizGroupEAC
  229. #TRGR_Horiz,#TRGR_EQUALSHARE OR #TRGR_ALIGN OR #TRGR_CENTER
  230. End Macro
  231.  
  232. Macro HorizGroupSAC
  233. #TRGR_Horiz,#TRGR_PROPSPACES OR #TRGR_ALIGN OR #TRGR_CENTER
  234. End Macro
  235.  
  236. Macro VertGroup
  237. #TRGR_Vert,0
  238. End Macro
  239.  
  240. Macro VertGroupE
  241. #TRGR_Vert,TRGR_EQUALSHARE
  242. End Macro
  243.  
  244. Macro VertGroupS
  245. #TRGR_Vert,#TRGR_PROPSPACES
  246. End Macro
  247.  
  248. Macro VertGroupA
  249. #TRGR_Vert,#TRGR_ALIGN
  250. End Macro
  251.  
  252. Macro VertGroupEA
  253. #TRGR_Vert,#TRGR_EQUALSHARE OR #TRGR_ALIGN
  254. End Macro
  255.  
  256. Macro VertGroupSA
  257. #TRGR_Vert,#TRGR_PROPSPACES OR #TRGR_ALIGN
  258. End Macro
  259.  
  260. Macro VertGroupC
  261. #TRGR_Vert,#TRGR_CENTER
  262. End Macro
  263.  
  264. Macro VertGroupEC
  265. #TRGR_Vert,#TRGR_EQUALSHARE OR #TRGR_CENTER
  266. End Macro
  267.  
  268. Macro VertGroupSC
  269. #TRGR_Vert,#TRGR_PROPSPACES OR #TRGR_CENTER
  270. End Macro
  271.  
  272. Macro VertGroupAC
  273. #TRGR_Vert,#TRGR_ALIGN OR #TRGR_CENTER
  274. End Macro
  275.  
  276. Macro VertGroupEAC
  277. #TRGR_Vert,#TRGR_EQUALSHARE OR #TRGR_ALIGN OR #TRGR_CENTER
  278. End Macro
  279.  
  280. Macro VertGroupSAC
  281. #TRGR_Vert,#TRGR_PROPSPACES OR #TRGR_ALIGN OR #TRGR_CENTER
  282. End Macro
  283.  
  284. Macro EndGroup
  285. #TRGR_End,0
  286. End Macro
  287.  
  288. Macro ColumnArray
  289. #TRGR_Horiz,#TRGR_ARRAY OR #TRGR_ALIGN OR #TRGR_CENTER
  290. End Macro
  291.  
  292. Macro LineArray
  293. #TRGR_Vert,#TRGR_ARRAY OR #TRGR_ALIGN OR #TRGR_CENTER
  294. End Macro
  295.  
  296. Macro BeginColumn
  297. #TRGR_Vert,#TRGR_PROPSHARE OR #TRGR_ALIGN OR #TRGR_CENTER
  298. End Macro
  299.  
  300. Macro BeginLine
  301. #TRGR_Horiz,#TRGR_PROPSHARE OR #TRGR_ALIGN OR #TRGR_CENTER
  302. End Macro
  303.  
  304. Macro BeginColumnI
  305. #TRGR_Vert,#TRGR_PROPSHARE OR #TRGR_ALIGN OR #TRGR_CENTER OR #TRGR_INDEP
  306. End Macro
  307.  
  308. Macro BeginLineI
  309. #TRGR_Horiz,#TRGR_PROPSHARE OR #TRGR_ALIGN OR #TRGR_CENTER OR #TRGR_INDEP
  310. End Macro
  311.  
  312. Macro EndColumn
  313. !EndGroup
  314. End Macro
  315.  
  316. Macro EndLine
  317. !EndGroup
  318. End Macro
  319.  
  320. Macro EndArray
  321. !EndGroup
  322. End Macro
  323.  
  324. ;/* Display Object */
  325. Macro QuickHelp
  326. #TRDO_QuickHelpString,`1
  327. End Macro
  328.  
  329. ;/* Spaces */
  330. Macro SpaceB
  331. #TROB_Space,#TRST_BIG
  332. End Macro
  333.  
  334. Macro Space
  335. #TROB_Space,#TRST_NORMAL
  336. End Macro
  337.  
  338. Macro SpaceS
  339. #TROB_Space,#TRST_SMALL
  340. End Macro
  341.  
  342. Macro SpaceN
  343. #TROB_Space,#TRST_NONE
  344. End Macro
  345.  
  346. ;/* Text */
  347. Macro TextN
  348. #TROB_Text,0,#TRAT_Text,`1
  349. End Macro
  350.  
  351. Macro TextH
  352. #TROB_Text,0,#TRAT_Text,`1,#TRAT_Flags,#TRTX_HIGHLIGHT
  353. End Macro
  354.  
  355. Macro Text3
  356. #TROB_Text,0,#TRAT_Text,`1,#TRAT_Flags,#TRTX_3D
  357. End Macro
  358.  
  359. Macro TextB
  360. #TROB_Text,0,#TRAT_Text,`1,#TRAT_Flags,#TRTX_BOLD
  361. End Macro
  362.  
  363. Macro TextT
  364. #TROB_Text,0,#TRAT_Text,`1,#TRAT_Flags,#TRTX_TITLE
  365. End Macro
  366.  
  367. Macro TextID
  368. #TROB_Text,0,#TRAT_Text,`1,#TRAT_ID,`2
  369. End Macro
  370.  
  371. Macro TextNR
  372. !TextN{`1},#TRAT_Flags,#TROF_RIGHTALIGN
  373. End Macro
  374.  
  375. Macro ClippedText
  376. !TextN{`1},#TRAT_Flags,#TRTX_CLIPPED OR #TRTX_NOUNDERSCORE
  377. End Macro
  378.  
  379. Macro ClippedTextID
  380. !TextN{`1},#TRAT_Flags,#TRTX_CLIPPED OR #TRTX_NOUNDERSCORE,#TRAT_ID,`2
  381. End Macro
  382.  
  383. Macro CenteredText
  384. !HorizGroupSC,!Space,!TextN{`1},!Space,!EndGroup
  385. End Macro
  386.  
  387. Macro CenteredTextH
  388. !HorizGroupSC,!Space,!TextH{`1},!Space,!EndGroup
  389. End Macro
  390.  
  391. Macro CenteredText3
  392. !HorizGroupSC,!Space,!Text3{`1},!Space,!EndGroup
  393. End Macro
  394.  
  395. Macro CenteredTextB
  396. !HorizGroupSC,!Space,!TextB{`1},!Space,!EndGroup
  397. End Macro
  398.  
  399. Macro CenteredTextID
  400. !HorizGroupSC,!Space,!TextID{`1,`2},!Space,!EndGroup
  401. End Macro
  402.  
  403. Macro CenteredText_BS
  404. !HorizGroupSC,!SpaceB,!TextN{`1},!SpaceB,!EndGroup
  405. End Macro
  406.  
  407. Macro TBK1  ; TextBox Kludge 1 needed with V4
  408. !Space,!EndGroup,!SpaceS,!EndGroup
  409. End Macro
  410.  
  411. Macro TextBox
  412. !_TextBox,!ObjectBackfillB, !VertGroup, !SpaceS, !HorizGroupSC, !Space, !TextN{`1},!TRAT_ID,`2,#TRAT_MinWidth,`3,!TBK1
  413. End Macro
  414.  
  415. Macro ClippedTextBox
  416. !_TextBox,!ObjectBackfillB,!VertGroupAC,!SpaceS,!HorizGroupAC,!Space,!ClippedTextID{`1,`2},!TBK1
  417. End Macro
  418.  
  419. Macro ClippedTextBoxMW
  420. !_TextBox,!ObjectBackfillB,!VertGroupAC,!SpaceS,!HorizGroupAC,!Space,!ClippedTextID{`1,`2},#TRAT_MinWidth,`3,!TBK1
  421. End Macro
  422.  
  423. Macro TextRIGHT
  424. !HorizGroupS,!Space,!TextN{`1},!ID{`2},!EndGroup
  425. End Macro
  426.  
  427. Macro Integer
  428. #TROB_Text,0,#TRAT_Value,`1
  429. End Macro
  430.  
  431. Macro IntegerH
  432. #TROB_Text,0,#TRAT_Value,`1,#TRAT_Flags,#TRTX_HIGHLIGHT
  433. End Macro
  434.  
  435. Macro Integer3
  436. #TROB_Text,0,#TRAT_Value,`1,#TRAT_Flags,#TRTX_3D
  437. End Macro
  438.  
  439. Macro IntegerB
  440. #TROB_Text,0,#TRAT_Value,`1,#TRAT_Flags,#TRTX_BOLD
  441. End Macro
  442.  
  443. Macro CenteredInteger
  444. !HorizGroupSC,!Space,!Integer{`1},!Space,!EndGroup
  445. End Macro
  446.  
  447. Macro CenteredIntegerH
  448. !HorizGroupSC,!Space,!IntegerH{`1},!Space,!EndGroup
  449. End Macro
  450.  
  451. Macro CenteredInteger3
  452. !HorizGroupSC,!Space,!Integer3{`1},!Space,!EndGroup
  453. End Macro
  454.  
  455. Macro CenteredIntegerB
  456. !HorizGroupSC,!Space,!IntegerB{`1},!Space,!EndGroup
  457. End Macro
  458.  
  459. ; Kludge for longer macro in Blitz, Hope this works!
  460.  
  461. Macro IBK1
  462. !Space,!EndGroup,!SpaceS,!EndGroup
  463. End Macro
  464.  
  465. Macro IntegerBox
  466. !GroupBox,!ObjectBackfillB,!VertGroup,!SpaceS,!HorizGroupSC,!Space,!Integer{`1},#TRAT_ID,`2,#TRAT_MinWidth,`3,!IBK1
  467. End Macro
  468.  
  469. ;/* Buttons */
  470. Macro Button
  471. #TROB_Button,0,#TRAT_Text,`1,#TRAT_ID,`2
  472. End Macro
  473.  
  474. Macro ButtonR
  475. #TROB_Button,0,#TRAT_Text,`1,#TRAT_ID,`2,#TRAT_Flags,#TRBU_RETURNOK
  476. End Macro
  477.  
  478. Macro ButtonE
  479. #TROB_Button,0,#TRAT_Text,`1,#TRAT_ID,`2,#TRAT_Flags,#TRBU_ESCOK
  480. End Macro
  481.  
  482. Macro ButtonRE
  483. #TROB_Button,0,#TRAT_Text,`1,#TRAT_ID,`2,#TRAT_Flags,#TRBU_RETURNOK OR #TRBU_ESCOK
  484. End Macro
  485.  
  486. Macro CenteredButton
  487. !HorizGroupSC,!Space,#TROB_Button,0,#TRAT_Text,`1,#TRAT_ID,`2,!Space,!EndGroup
  488. End Macro
  489.  
  490. Macro CenteredButtonR
  491. !HorizGroupSC,!Space,#TROB_Button,0,#TRAT_Flags,#TRBU_RETURNOK,#TRAT_Text,`1,#TRAT_ID,`2,!Space,!EndGroup
  492. End Macro
  493.  
  494. Macro CenteredButtonE
  495. !HorizGroupSC,!Space,#TROB_Button,0,#TRAT_Flags,#TRBU_ESCOK,#TRAT_Text,`1,#TRAT_ID,`2,!Space,!EndGroup
  496. End Macro
  497.  
  498. Macro CenteredButtonRE
  499. !HorizGroupSC,Space,#TROB_Button,0,#TRAT_Flags,#TRBU_RETURNOK OR #TRBU_ESCOK,#TRAT_Text,`1,#TRAT_ID,`2,!Space,!EndGroup
  500. End Macro
  501.  
  502. Macro EmptyButton
  503. #TROB_Button,0,#TRAT_Text,Null(""),#TRAT_ID,`1
  504. End Macro
  505.  
  506. Macro GetFileButton
  507. #TROB_Button,#TRBT_GETFILE,#TRAT_Text,Null(""),#TRAT_ID,`1,#TRAT_Flags,#TRBU_YRESIZE
  508. End Macro
  509.  
  510. Macro GetDrawerButton
  511. #TROB_Button,#TRBT_GETDRAWER,#TRAT_Text,Null(""),#TRAT_ID,`1,#TRAT_Flags,#TRBU_YRESIZE
  512. End Macro
  513.  
  514. Macro GetEntryButton
  515. #TROB_Button,#TRBT_GETENTRY,#TRAT_Text,Null(""),#TRAT_ID,`1,#TRAT_Flags,#TRBU_YRESIZE
  516. End Macro
  517.  
  518. Macro GetFileButtonS
  519. #TROB_Button,#TRBT_GETFILE,#TRAT_Text,`1,#TRAT_ID,`2,#TRAT_Flags,#TRBU_YRESIZE
  520. End Macro
  521.  
  522. Macro GetDrawerButtonS
  523. #TROB_Button,#TRBT_GETDRAWER,#TRAT_Text,`1,#TRAT_ID,`2,#TRAT_Flags,#TRBU_YRESIZE
  524. End Macro
  525.  
  526. Macro GetEntryButtonS
  527. #TROB_Button,#TRBT_GETENTRY,#TRAT_Text,`1,#TRAT_ID,`2,#TRAT_Flags,#TRBU_YRESIZE
  528. End Macro
  529.  
  530. ;/* Lines */
  531. Macro _Line
  532. #TROB_Line,`1
  533. End Macro
  534.  
  535. Macro HorizSeparator
  536. !HorizGroupEC,!Space,!_Line{#TROF_HORIZ},!Space,!EndGroup
  537. End Macro
  538.  
  539. Macro VertSeparator
  540. !VertGroupEC,!Space,!_Line{#TROF_VERT},!Space,!EndGroup
  541. End Macro
  542.  
  543. Macro NamedSeparator
  544. !HorizGroupEC,!Space,!_Line{#TROF_HORIZ},!Space,!TextT{`1},!Space,!_Line{#TROF_HORIZ},!Space,!EndGroup
  545. End Macro
  546.  
  547. Macro NamedSeparatorI
  548. !HorizGroupEC,!Space,!_Line{#TROF_HORIZ},!Space,!TextT{`1},#TRAT_ID,`2,!Space,!_Line{#TROF_HORIZ},!Space,!EndGroup
  549. End Macro
  550.  
  551. Macro NamedSeparatorN
  552. !HorizGroupEC,!_Line{#TROF_HORIZ},!Space,!TextT{`1},!Space,!_Line{#TROF_HORIZ},!EndGroup
  553. End Macro
  554.  
  555. Macro NamedSeparatorIN
  556. !HorizGroupEC,!_Line{TROF_HORIZ},!Space,!TextT{`1},#TRAT_ID,`2,!Space,!_Line{#TROF_HORIZ},!EndGroup
  557. End Macro
  558.  
  559. ;/* FrameBox */
  560. Macro GroupBox
  561. #TROB_FrameBox,#TRFB_GROUPING
  562. End Macro
  563.  
  564. Macro NamedFrameBox
  565. #TROB_FrameBox,#TRFB_FRAMING,#TRAT_Text,`1
  566. End Macro
  567.  
  568. Macro _TextBox
  569. #TROB_FrameBox,#TRFB_TEXT
  570. End Macro
  571.  
  572. ;/* DropBox */
  573. Macro DropBox
  574. #TROB_DropBox,0,#TRAT_ID,`1
  575. End Macro
  576.  
  577. ;/* CheckBox gadget */
  578. Macro CheckBox
  579. #TROB_CheckBox,0,#TRAT_ID,`1
  580. End Macro
  581.  
  582. Macro CheckBoxC
  583. #TROB_CheckBox,0,#TRAT_ID,`1,#TRAT_Value,True
  584. End Macro
  585.  
  586. Macro CheckBoxLEFT
  587. !HorizGroupS,!CheckBox{`1},!Space,!EndGroup
  588. End Macro
  589.  
  590. Macro CheckBoxCLEFT
  591. !HorizGroupS,!CheckBoxC{`1},!Space,!EndGroup
  592. End Macro
  593.  
  594. ;/* String gadget */
  595. Macro _StringGadget
  596. #TROB_String,`1,#TRAT_ID,`2
  597. End Macro
  598.  
  599. Macro PasswordGadget
  600. #TROB_String,`1,#TRAT_ID,`2,#TRAT_Flags,#TRST_INVISIBLE
  601. End Macro
  602.  
  603. ;/* Cycle gadget */
  604. Macro CycleGadget
  605. #TROB_Cycle,`1,#TRAT_ID,`3,#TRAT_Value,`2
  606. End Macro
  607.  
  608. Macro MXGadget
  609. #TROB_Cycle,`1,#TRAT_ID,`3,#TRAT_Value,`2,#TRAT_Flags,#TRCY_MX
  610. End Macro
  611.  
  612. Macro MXGadgetR
  613. #TROB_Cycle,`1,#TRAT_ID,`3,#TRAT_Value,`2,#TRAT_Flags,#TRCY_MX OR TRCY_RIGHTLABELS
  614. End Macro
  615.  
  616. ;/* Slider gadget */
  617. Macro SliderGadget
  618. #TROB_Slider,0,#TRSL_Min,`1,#TRSL_Max,`2,#TRAT_ID,`4,#TRAT_Value,`3
  619. End Macro
  620.  
  621. ;/* Palette gadget */
  622. Macro PaletteGadget
  623. #TROB_Palette,0,#TRAT_ID,`2,#TRAT_Value,`1
  624. End Macro
  625.  
  626. ;/* Listview gadget */
  627. Macro ListRO
  628. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_READONLY,#TRAT_ID,`2,#TRAT_Value,0,#TRLV_Top,`3
  629. End Macro
  630.  
  631. Macro ListSel
  632. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_SELECT,#TRAT_ID,`2,#TRAT_Value,0,#TRLV_Top,`3
  633. End Macro
  634.  
  635. Macro LK3  ; {top,value}  List Kludge 3
  636. #TRAT_Value,`2,#TRLV_Top,`1
  637. End Macro
  638.  
  639. Macro ListSS
  640. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_SHOWSELECTED,#TRAT_ID,`2,#TRAT_Value,`4,#TRLV_Top,`3
  641. End Macro
  642.  
  643.  
  644. ; Taken out because Blitz says it is too long
  645. ;Macro ListROC
  646. ;#TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_READONLY OR #TRLV_NOCURSORKEYS,#TRAT_ID,`2,!LK3{`3,0}
  647. ;End
  648.  
  649. Macro ListSelC
  650. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_SELECT OR #TRLV_NOCURSORKEYS,#TRAT_ID,`2,!LK3{`3,0}
  651. End Macro
  652.  
  653. Macro ListSSC
  654. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_SHOWSELECTED OR #TRLV_NOCURSORKEYS,#TRAT_ID,`2,!LK3{`3,`4}
  655. End Macro
  656.  
  657. Macro ListRON
  658. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_READONLY OR #TRLV_NUNUMPADKEYS,#TRAT_ID,`2,!LK3{`3,0}
  659. End Macro
  660.  
  661. Macro ListSelN
  662. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_SELECT OR #TRLV_NONUMPADKEYS,#TRAT_ID,`2,!LK3{`3,0}
  663. End Macro
  664.  
  665. Macro ListSSN
  666. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_SHOWSELECTED OR #TRLV_NONUMPADKEYS,#TRAT_ID,`2,!LK3{`3,`4}
  667. End Macro
  668.  
  669. Macro LK2  ; {id,top}  List Kludge 2
  670. #TRAT_ID,`1,#TRAT_Value,0,#TRLV_Top,`1
  671. End Macro
  672.  
  673. Macro ListROCN
  674. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_READONLY OR #TRLV_NOCURSORKEYS OR #TRLV_NONUMPADKEYS,!LK2{`2,`3}
  675. End Macro
  676.  
  677. Macro ListSelCN
  678. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_SELECT OR #TRLV_NOCURSORKEYS OR #TRLV_NONUMPADKEYS,!LK2{`2,`3}
  679. End Macro
  680.  
  681. Macro LK1  ; (id,top,value) List Kludge 1
  682. #TRAT_ID,`1,#TRAT_Value,`3,#TRLV_Top,`2
  683. End Macro
  684.  
  685. Macro ListSSCN
  686. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_SHOWSELECTED OR #TRLV_NOCURSORKEYS OR #TRLV_NONUMPADKEYS,!LK1{`2,`3,`4}
  687. End Macro
  688.  
  689. Macro FWListRO
  690. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_FWFONT OR #TRLV_READONLY,#TRAT_ID,`2,#TRAT_Value,0,#TRLV_Top,`3
  691. End Macro
  692.  
  693. Macro FWListSel
  694. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_FWFONT OR #TRLV_SELECT,#TRAT_ID,`2,TRAT_Value,0,#TRLV_Top,`3
  695. End Macro
  696.  
  697. Macro FWListSS
  698. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_FWFONT OR #TRLV_SHOWSELECTED,!LK1{`2,`3,`4}
  699. End Macro
  700.  
  701. Macro FWListROC
  702. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_FWFONT OR #TRLV_READONLY OR #TRLV_NOCURSORKEYS,!LK1{`2,0,`3}
  703. End Macro
  704.  
  705. Macro FWListSelC
  706. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_FWFONT OR #TRLV_SELECT OR #TRLV_NOCURSORKEYS,!LK1{`2,0,`3}
  707. End Macro
  708.  
  709. Macro FWListSSC
  710. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_FWFONT OR #TRLV_SHOWSELECTED OR #TRLV_NOCURSORKEYS,!LK1{`2,`3,`4}
  711. End Macro
  712.  
  713. Macro FWListRON
  714. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_FWFONT OR #TRLV_READONLY OR #TRLV_NUNUMPADKEYS,!LK2{`2,`3,0}
  715. End Macro
  716.  
  717. Macro FWListSelN
  718. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_FWFONT OR #TRLV_SELECT OR #TRLV_NONUMPADKEYS,!LK2{`2,`3,0}
  719. End Macro
  720.  
  721. Macro FWListSSN
  722. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_FWFONT OR #TRLV_SHOWSELECTED OR #TRLV_NONUMPADKEYS,!LK2{`2,`3,`4}
  723. End Macro
  724.  
  725. Macro LK4 ; List Kludge 4 only for a few lines below
  726. OR #TRLV_NOCURSORKEYS OR #TRLV_NONUMPADKEYS
  727. End Macro
  728.  
  729. Macro FWListROCN
  730. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_FWFONT OR #TRLV_READONLY !LK4,!LK2{`2,`3,0}
  731. End Macro
  732.  
  733. Macro FWListSelCN
  734. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_FWFONT OR #TRLV_SELECT !LK4,!LK2{`2,`3,0}
  735. End Macro
  736.  
  737. Macro FWListSSCN
  738. #TROB_Listview,`1,#TRAT_Flags,#TRLV_NOGAP OR #TRLV_FWFONT OR #TRLV_SHOWSELECTED !LK4,!LK2{`2,`3,`4}
  739. End Macro
  740.  
  741. ;/* Progress indicator */
  742. Macro Progress
  743. #TROB_Progress,`1,#TRAT_ID,`3,#TRAT_Value,`2
  744. End Macro
  745.  
  746. ;/* Image */
  747. Macro BoopsiImage
  748. #TROB_Image,`1,#TRAT_Flags,#TRIM_BOOPSI
  749. End Macro
  750.  
  751. Macro BoopsiImageD
  752. #TROB_Image,`1,#TRAT_MinWidth,`2,#TRAT_MinHeight,`3,#TRAT_Flags,#TRIM_BOOPSI
  753. End Macro
  754.  
  755. ;/* Attributes */
  756. Macro ID
  757. #TRAT_ID,`1
  758. End Macro
  759.  
  760. Macro Disabled
  761. #TRAT_Disabled,True
  762. End Macro
  763.  
  764. Macro ObjectBackfillWin
  765. #TRAT_Backfill,#TRBF_WINDOWBACK
  766. End Macro
  767.  
  768. Macro ObjectBackfillReq
  769. #TRAT_Backfill,#TRBF_REQUESTERBACK
  770. End Macro
  771.  
  772. Macro ObjectBackfillB
  773. #TRAT_Backfill,#TRBF_NONE
  774. End Macro
  775.  
  776. Macro ObjectBackfillS
  777. #TRAT_Backfill,#TRBF_SHINE
  778. End Macro
  779.  
  780. Macro ObjectBackfillSA
  781. #TRAT_Backfill,#TRBF_SHINE_SHADOW
  782. End Macro
  783.  
  784. Macro ObjectBackfillSF
  785. #TRAT_Backfill,#TRBF_SHINE_FILL
  786. End Macro
  787.  
  788. Macro ObjectBackfillSB
  789. #TRAT_Backfill,#TRBF_SHINE_BACKGROUND
  790. End Macro
  791.  
  792. Macro ObjectBackfillA
  793. #TRAT_Backfill,#TRBF_SHADOW
  794. End Macro
  795.  
  796. Macro ObjectBackfillAF
  797. #TRAT_Backfill,#TRBF_SHADOW_FILL
  798. End Macro
  799.  
  800. Macro ObjectBackfillAB
  801. #TRAT_Backfill,#TRBF_SHADOW_BACKGROUND
  802. End Macro
  803.  
  804. Macro ObjectBackfillF
  805. #TRAT_Backfill,#TRBF_FILL
  806. End Macro
  807.  
  808. Macro ObjectBackfillFB
  809. #TRAT_Backfill,#TRBF_FILL_BACKGROUND
  810. End Macro
  811.  
  812. ;/* Requester support */
  813. ;Kludge for longer macro (again!)
  814.  
  815. Macro reqk
  816. !WindowFlags{#TRWF_NOZIPGADGET OR #TRWF_NOSIZEGADGET OR #TRWF_NOCLOSEGADGET OR #TRWF_NODELZIP OR #TRWF_NOESCCLOSE}
  817. End Macro
  818.  
  819. Macro BeginRequester
  820. !WindowTitle{`1},!WindowPosition{`2},!WindowBackfillReq,!reqk,!VertGroupA,!Space,!HorizGroupA,!Space,!GroupBox,!ObjectBackfillB
  821. End Macro
  822.  
  823. Macro BeginRequesterGads
  824. !Space,!EndGroup,!Space
  825. End Macro
  826.  
  827. Macro EndRequester
  828. !Space,!EndGroup,!EndProject
  829. End Macro
  830.  
  831.  
  832. ;/* ////////////////////////////////////////////////////////////////////// */
  833. ;/* /////////////////////////////////////////////////// Support library // */
  834. ;/* ////////////////////////////////////////////////////////////////////// */
  835. ;#Application=__Triton_Support_App
  836. ;/* ////////////////////////////////////////////////////////////////////// */
  837. ;/* //////////////////////////////////////////////// The Triton message // */
  838. ;/* ////////////////////////////////////////////////////////////////////// */
  839.  
  840. NEWTYPE .TR_Message
  841.   *trm_Project.TR_Project
  842.   trm_ID.l  ;/* The object's ID (where appropriate) */
  843.   trm_Class.l ;/* The Triton message class */
  844.   trm_Data.l  ;/* The class-specific data */
  845.   trm_Code.l  ;/* Currently only used by TRMS_KEYPRESSED */
  846.   trm_Qualifier.l ;/* IEQUALIFIERs */
  847.   trm_Seconds.l ;/* \ Copy of system clock time (Only where */
  848.   trm_Micros.l  ;/* / available! If not set, trm_Seconds is 0L) */
  849.   *trm_App.TR_App
  850. End NEWTYPE
  851.  
  852. ;/* Message classes */
  853.  
  854. #TRMS_CLOSEWINDOW   =1 ; The window should be closed */
  855. #TRMS_ERROR         =2 ; An error occured. Error code in trm_Data */
  856. #TRMS_NEWVALUE      =3 ; Object's value has changed. New value in trm_Data */
  857. #TRMS_ACTION        =4 ; Object has triggered an action */
  858. #TRMS_ICONDROPPED   =5 ; Icon dropped over window (ID=0) or DropBox. AppMessage* in trm_Data */
  859. #TRMS_KEYPRESSED    =6 ; Key pressed. trm_Data contains ASCII code, trm_Code raw code and */
  860. #TRMS_HELP          =7 ; The user requested help for the specified ID */
  861. #TRMS_DISKINSERTED  =8 ; A disk has been inserted into a drive
  862. #TRMS_DISKREMOVED   =9 ; A disk has been removed from a drive
  863.  
  864. ;/* ////////////////////////////////////////////////////////////////////// */
  865. ;/* //////////////////////////////////////////////// Triton error codes // */
  866. ;/* ////////////////////////////////////////////////////////////////////// */
  867.  
  868. #TRER_OK              =0 ; No error */
  869. #TRER_ALLOCMEM        =1 ; Not enough memory */
  870. #TRER_OPENWINDOW      =2 ; Can't open window */
  871. #TRER_WINDOWTOOBIG    =3 ; Window would be too big for screen */
  872. #TRER_DRAWINFO        =4 ; Can't get screen's DrawInfo */
  873. #TRER_OPENFONT        =5 ; Can't open font */
  874. #TRER_CREATEMSGPORT   =6 ; Can't create message port */
  875. #TRER_INSTALLOBJECT   =7 ; Can't create an object */
  876. #TRER_CREATECLASS     =8 ; Can't create a class */
  877. #TRER_NOLOCKPUBSCREEN =9 ; Can't lock public screen */
  878. #TRER_CREATEMENUS     =12; Error while creating the menus */
  879. #TRER_GT_CREATECONTEXT=14; Can't create gadget context */
  880. #TRER_MAXERRORNUM     =15; PRIVATE! */
  881.  
  882. ; Object Messages
  883.  
  884. #TROM_ACTIVATE=23
  885.  
  886.  
  887. ;/* ////////////////////////////////////////////////////////////////////// */
  888. ;/* ///////////////////////////////////////// Tags for TR_OpenProject() // */
  889. ;/* ////////////////////////////////////////////////////////////////////// */
  890. ;/* Tag bases */
  891.  
  892. #TRTG_OAT =#TAG_USER+$400 ;/* Object attribute */
  893. #TRTG_OBJ =#TAG_USER+$100 ;/* Object ID */
  894. #TRTG_OAT2=#TAG_USER+$80 ;/* PRIVATE! */
  895. #TRTG_PAT =#TAG_USER      ;/* Project attribute */
  896.  
  897. ;#TRTG_SER(ser)=(ser <<11)
  898. ;macro TRTG_SER
  899. ;`1 LSL 11
  900. ;end macro
  901.  
  902. ;/* Window/Project */
  903. #TRWI_Title=             #TRTG_PAT+$01  ;/* STRPTR: The window title */
  904. #TRWI_Flags=             #TRTG_PAT+$02  ;/* See below for window flags */
  905. #TRWI_Underscore=        #TRTG_PAT+$03  ;/* char *: The underscore for menu and gadget shortcuts */
  906. #TRWI_Position=          #TRTG_PAT+$04  ;/* Window position, see below */
  907. #TRWI_CustomScreen=      #TRTG_PAT+$05  ;/* struct Screen * */
  908. #TRWI_PubScreen=         #TRTG_PAT+$06  ;/* struct Screen *, must have been locked! */
  909. #TRWI_PubScreenName=     #TRTG_PAT+$07  ;/* STRPTR, Triton is doing the locking */
  910. #TRWI_PropFontAttr=      #TRTG_PAT+$08  ;/* struct TextAttr *: The proportional font */
  911. #TRWI_FixedWidthFontAttr=#TRTG_PAT+$09  ;/* struct TextAttr *: The fixed-width font */
  912. #TRWI_Backfill=          #TRTG_PAT+$0A  ;/* The backfill type, see below */
  913. #TRWI_ID=                #TRTG_PAT+$0B  ;/* ULONG: The window ID */
  914. #TRWI_Dimensions=        #TRTG_PAT+$0C  ;/* struct TR_Dimensions * */
  915. #TRWI_ScreenTitle=       #TRTG_PAT+$0D  ;/* STRPTR: The screen title */
  916. #TRWI_QuickHelp=         #TRTG_PAT+$0E  ;   BOO: Quick Help active?
  917.  
  918. ;/* Menus */
  919. #TRMN_Title= #TRTG_PAT+$65  ;/* STRPTR: Menu */
  920. #TRMN_Item=  #TRTG_PAT+$66  ;/* STRPTR: Menu item */
  921. #TRMN_Sub=   #TRTG_PAT+$67  ;/* STRPTR: Menu subitem */
  922. #TRMN_Flags= #TRTG_PAT+$68  ;/* See below for flags */
  923.  
  924. ;/* General object attributes */
  925. #TRAT_ID=      #TRTG_OAT2+$16  ;/* The object's/menu's ID */
  926. #TRAT_Flags=   #TRTG_OAT2+$17  ;/* The object's flags */
  927. #TRAT_Value=   #TRTG_OAT2+$18  ;/* The object's value */
  928. #TRAT_Text=    #TRTG_OAT2+$19  ;/* The object's text */
  929. #TRAT_Disabled=#TRTG_OAT2+$1A  ;/* Disabled object? */
  930. #TRAT_Backfill=#TRTG_OAT2+$1B  ;/* Backfill pattern */
  931. #TRAT_MinWidth=#TRTG_OAT2+$1C  ;/* Minimum width */
  932. #TRAT_MinHeight=#TRTG_OAT2+$1D  ;/* Minimum height */
  933.  
  934. ;/* ////////////////////////////////////////////////////////////////////// */
  935. ;/* ////////////////////////////////////////////////////// Window flags // */
  936. ;/* ////////////////////////////////////////////////////////////////////// */
  937.  
  938. #TRWF_BACKDROP          =$00000001 ; Create a backdrop borderless window */
  939. #TRWF_NODRAGBAR         =$00000002 ; Don't use a dragbar */
  940. #TRWF_NODEPTHGADGET     =$00000004 ; Don't use a depth-gadget */
  941. #TRWF_NOCLOSEGADGET     =$00000008 ; Don't use a close-gadget */
  942. #TRWF_NOACTIVATE        =$00000010 ; Don't activate window */
  943. #TRWF_NOESCCLOSE        =$00000020 ; Don't send TRMS_CLOSEWINDOW when Esc is pressed */
  944. #TRWF_NOPSCRFALLBACK    =$00000040 ; Don't fall back onto default PubScreen */
  945. #TRWF_NOZIPGADGET       =$00000080 ; Don't use a zip-gadget */
  946. #TRWF_ZIPCENTERTOP      =$00000100 ; Center the zipped window on the title bar */
  947. #TRWF_NOMINTEXTWIDTH    =$00000200 ; Minimum window width not according to title text */
  948. #TRWF_NOSIZEGADGET      =$00000400 ; Don't use a sizing-gadget */
  949. #TRWF_NOFONTFALLBACK    =$00000800 ; Don't fall back to topaz.8 */
  950. #TRWF_NODELZIP          =$00001000 ; Don't zip the window when Del is pressed */
  951. #TRWF_SIMPLEREFRESH     =$00002000 ; *** OBSOLETE *** (V3+) */
  952. #TRWF_ZIPTOCURRENTPOS   =$00004000 ; Will zip the window at the current position (OS3.0+) */
  953. #TRWF_APPWINDOW         =$00008000 ; Create an AppWindow without using class_dropbox */
  954. #TRWF_ACTIVATESTRGAD    =$00010000 ; Activate the first string gadget after opening the window */
  955. #TRWF_HELP              =$00020000 ; Pressing <Help> will create a TRMS_HELP message */
  956. #TRWF_SYSTEMACTION      =$00040000 ; System status message will be sent (V4)
  957.  
  958.  
  959. ;/* ////////////////////////////////////////////////////////////////////// */
  960. ;/* //////////////////////////////////////////////////////// Menu flags // */
  961. ;/* ////////////////////////////////////////////////////////////////////// */
  962.  
  963. #TRMF_CHECKIT   =$00000001 ; Leave space for a checkmark */
  964. #TRMF_CHECKED   =$00000002 ; Check the item (includes TRMF_CHECKIT) */
  965. #TRMF_DISABLED  =$00000004 ; Ghost the menu/item */
  966.  
  967.  
  968. ;/* ////////////////////////////////////////////////////////////////////// */
  969. ;/* ////////////////////////////////////////////////// Window positions // */
  970. ;/* ////////////////////////////////////////////////////////////////////// */
  971.  
  972. #TRWP_DEFAULT       =0    ; Let Triton choose a good position */
  973. #TRWP_BELOWTITLEBAR =1    ; Left side of screen, below title bar */
  974. #TRWP_CENTERTOP     =1025 ; Top of screen, centered on the title bar */
  975. #TRWP_TOPLEFTSCREEN =1026 ; Top left corner of screen */
  976. #TRWP_CENTERSCREEN  =1027 ; Centered on the screen */
  977. #TRWP_CENTERDISPLAY =1028 ; Centered on the currently displayed clip */
  978. #TRWP_MOUSEPOINTER  =1029 ; Under the mouse pointer */
  979. #TRWP_ABOVECOORDS   =2049 ; Above coordinates from the dimensions struct
  980. #TRWP_BELOWCOORDS   =2050 ; Below coordinates from the dimension struct
  981.  
  982.  
  983. ;/* ////////////////////////////////////////////////////////////////////// */
  984. ;/* //////////////////////////////////// Backfill types / System images // */
  985. ;/* ////////////////////////////////////////////////////////////////////// */
  986.  
  987. #TRBF_WINDOWBACK        =$00000000 ; Window backfill */
  988. #TRBF_REQUESTERBACK     =$00000001 ; Requester backfill */
  989.  
  990. #TRBF_NONE              =$00000002 ; No backfill (= Fill with BACKGROUNDPEN) */
  991. #TRBF_SHINE             =$00000003 ; Fill with SHINEPEN */
  992. #TRBF_SHINE_SHADOW      =$00000004 ; Fill with SHINEPEN + SHADOWPEN */
  993. #TRBF_SHINE_FILL        =$00000005 ; Fill with SHINEPEN + FILLPEN */
  994. #TRBF_SHINE_BACKGROUND  =$00000006 ; Fill with SHINEPEN + BACKGROUNDPEN */
  995. #TRBF_SHADOW            =$00000007 ; Fill with SHADOWPEN */
  996. #TRBF_SHADOW_FILL       =$00000008 ; Fill with SHADOWPEN + FILLPEN */
  997. #TRBF_SHADOW_BACKGROUND =$00000009 ; Fill with SHADOWPEN + BACKGROUNDPEN */
  998. #TRBF_FILL              =$0000000A ; Fill with FILLPEN */
  999. #TRBF_FILL_BACKGROUND   =$0000000B ; Fill with FILLPEN + BACKGROUNDPEN */
  1000.  
  1001. #TRSI_USBUTTONBACK      =$00010002 ; Unselected button backfill */
  1002. #TRSI_SBUTTONBACK       =$00010003 ; Selected button backfill */
  1003.  
  1004.  
  1005. ;/* ////////////////////////////////////////////////////////////////////// */
  1006. ;/* ////////////////////////////////////////////// Display Object flags // */
  1007. ;/* ////////////////////////////////////////////////////////////////////// */
  1008.  
  1009. ;/* General flags */
  1010. #TROF_RAISED        =$00000001 ; Raised object */
  1011. #TROF_HORIZ         =$00000002 ; Horizontal object \ Works automatically */
  1012. #TROF_VERT          =$00000004 ; Vertical object   / in groups */
  1013. #TROF_RIGHTALIGN    =$00000008 ; Align object to the right border if available */
  1014.  
  1015. ;/* Text flags */
  1016. #TRTX_NOUNDERSCORE  =$00000100 ; Don't interpret underscores */
  1017. #TRTX_HIGHLIGHT     =$00000200 ; Highlight text */
  1018. #TRTX_3D            =$00000400 ; 3D design */
  1019. #TRTX_BOLD          =$00000800 ; Softstyle 'bold' */
  1020. #TRTX_TITLE         =$00001000 ; A title (e.g. of a group) */
  1021. #TRTX_SELECTED      =$00002000 ; PRIVATE! */
  1022.  
  1023.  
  1024. ;/* ////////////////////////////////////////////////////////////////////// */
  1025. ;/* ////////////////////////////////////////////////////// Menu entries // */
  1026. ;/* ////////////////////////////////////////////////////////////////////// */
  1027.  
  1028. #TRMN_BARLABEL=-1 ;/* A barlabel instead of text */
  1029.  
  1030. ;/* ////////////////////////////////////////////////////////////////////// */
  1031. ;/* /////////////////////////////////////////// Tags for TR_CreateApp() // */
  1032. ;/* ////////////////////////////////////////////////////////////////////// */
  1033.  
  1034. #TRCA_Name      =#TAG_USER+1
  1035. #TRCA_LongName  =#TAG_USER+2
  1036. #TRCA_Info      =#TAG_USER+3
  1037. #TRCA_Version   =#TAG_USER+4
  1038. #TRCA_Release   =#TAG_USER+5
  1039. #TRCA_Date      =#TAG_USER+6
  1040.  
  1041. ;/* ////////////////////////////////////////////////////////////////////// */
  1042. ;/* ///////////////////////////////////////// Tags for TR_EasyRequest() // */
  1043. ;/* ////////////////////////////////////////////////////////////////////// */
  1044.  
  1045. #TREZ_ReqPos        =#TAG_USER+1
  1046. #TREZ_LockProject   =#TAG_USER+2
  1047. #TREZ_Return        =#TAG_USER+3
  1048. #TREZ_Title         =#TAG_USER+4
  1049. #TREZ_Activate      =#TAG_USER+5
  1050.  
  1051. ;/* ////////////////////////////////////////////////////////////////////// */
  1052. ;/* ///////////////////////////////////////// The Application Structure // */
  1053. ;/* ////////////////////////////////////////////////////////////////////// */
  1054.  
  1055. NEWTYPE .TR_App
  1056.   *tra_MemPool.w
  1057.   tra_BitMask.l ;/* Bits to Wait() for */
  1058.   tra_LastError.l ;/* TRER code of last error */
  1059.   tra_Name.l  ;/* Unique name */
  1060.   tra_LongName.l  ;/* User-readable name */
  1061.   tra_Info.l  ;/* Info string */
  1062.   tra_Version.l ;/* Version */
  1063.   tra_Release.l ;/* Release */
  1064.   tra_Date.l  ;/* Compilation date */
  1065.   *tra_AppPort.MsgPort
  1066.   *tra_IDCMPPort.MsgPort
  1067.   *tra_Prefs.w
  1068.   *tra_LastProject.TR_Project
  1069.   *tra_InputEvent.InputEvent
  1070. End NEWTYPE
  1071.  
  1072.  
  1073. ;/* ////////////////////////////////////////////////////////////////////// */
  1074. ;/* ////////////////////////////////////////// The Dimensions Structure // */
  1075. ;/* ////////////////////////////////////////////////////////////////////// */
  1076.  
  1077. NEWTYPE .TR_Dimensions
  1078.   trd_Left.w  ;/* Left */
  1079.   trd_Top.w ;/* Top */
  1080.   trd_Width.w ;/* Width */
  1081.   trd_Height.w  ;/* Height */
  1082.   trd_Left2.w ;/* Left */
  1083.   trd_Top2.w  ;/* Top */
  1084.   trd_Width2.w  ;/* Width */
  1085.   trd_Height2.w ;/* Height */
  1086.   trd_Zoomed.w  ;/* Window zoomed? */
  1087.   reserved.w[3] ;/* For future expansions */
  1088. End NEWTYPE
  1089.  
  1090.  
  1091. ;/* ////////////////////////////////////////////////////////////////////// */
  1092. ;/* ///////////////////////////////////////////// The Project Structure // */
  1093. ;/* ////////////////////////////////////////////////////////////////////// */
  1094.  
  1095. NEWTYPE .TR_Project  ;;;;;;;; PRIVATE!!!! ;;;;;;;;
  1096.   *trp_App.TR_App
  1097.   *trp_Screen.Screen
  1098.   trp_ScreenType.l          ; Type of screen (WA_...Screen)
  1099.   trp_ID.l                  ;Project's ID
  1100.   *trp_LockedPubScreen.Screen
  1101.   trp_ScreenTitle.l         ; The screen title */
  1102.   *trp_Window.Window
  1103.   *trp_AppWindow.AppWindow
  1104.   trp_IDCMPFlags.l          ; The IDCMP flags */
  1105.   trp_Flags.l               ; Triton window flags */
  1106.   *trp_NewMenu.NewMenu
  1107.   trp_NewMenuSize.l         ; The number of menu items in the list */
  1108.   *trp_Menu.Menu
  1109.   trp_NextSelect.w          ; The next selected menu item */
  1110.   *trp_VisualInfo.w
  1111.   *trp_DrawInfo.DrawInfo
  1112.   *trp_UserDimensions.TR_Dimensions
  1113.   *trp_Dimensions.TR_Dimensions
  1114.   trp_WindowStdHeight.l     ; The standard height of the window */
  1115.   trp_LeftBorder.l          ; The width of the left window border */
  1116.   trp_RightBorder.l         ; The width of the right window border */
  1117.   trp_TopBorder.l           ; The height of the top window border */
  1118.   trp_BottomBorder.l        ; The height of the bottom window border */
  1119.   trp_InnerWidth.l          ; The inner width of the window */
  1120.   trp_InnerHeight.l         ; The inner height of the window */
  1121.   trp_ZipDimensions.w[4]    ; The dimensions for the zipped window */
  1122.   trp_AspectFixing.w        ; Pixel aspect correction factor */
  1123.   trp_ObjectList.MinList    ; The list of display objects */
  1124.   trp_MenuList.MinList      ; The list of menus */
  1125.   trp_IDList.MinList        ; The ID linking list (menus & objects) */
  1126.   *trp_MemPool.w
  1127.   trp_HasObjects.w          ; Do we have display objects ? */
  1128.   *trp_PropAttr.TextAttr
  1129.   *trp_FixedWidthAttr.TextAttr
  1130.   *trp_PropFont.TextFont
  1131.   *trp_FixedWidthFont.TextFont
  1132.   trp_OpenedPropFont.w      ; \ Have we opened the fonts ? */
  1133.   trp_OpenedFixedWidthFont.w; /                            */
  1134.   trp_TotalPropFontHeight.w ; Height of prop font incl. underscore */
  1135.   trp_BackfillType.l        ; The backfill type */
  1136.   *trp_BackfillHook.Hook
  1137.   *trp_GadToolsGadgetList.Gadget
  1138.   *trp_PrevGadget.Gadget
  1139.   *trp_NewGadget.NewGadget
  1140.   *trp_InvisibleRequest.Requester
  1141.   trp_IsUserLocked.w        ; Project locked by the user? */
  1142.   trp_CurrentID.l           ; The currently keyboard-selected ID */
  1143.   trp_IsCancelDown.w        ; Cancellation key pressed? */
  1144.   trp_IsShortcutDown.w      ; Shortcut key pressed? */
  1145.   trp_Underscore.b          ; The underscore character */
  1146.   trp_EscClose.w            ; Close window on Esc ? */
  1147.   trp_DelZip.w              ; Zip window on Del ? */
  1148.   trp_PubScreenFallBack.w   ; Fall back onto default public screen ? */
  1149.   trp_FontFallBack.w        ; Fall back to topaz.8 ? */
  1150.   trp_OldWidth.w            ; Old window width */
  1151.   trp_OldHeight.w           ; Old window height */
  1152.  
  1153.   *trp_QuickHelpWindow.Window
  1154. ;  *trp_QuickHelpObject.#TROD_DisplayObject
  1155.   trp_TicksPassed.l
  1156. End NEWTYPE
  1157.  
  1158.  
  1159. ;/* ////////////////////////////////////////////////////////////////////// */
  1160. ;/* ///////////////////////////// Default classes, attributes and flags // */
  1161. ;/* ////////////////////////////////////////////////////////////////////// */
  1162. ;** The following code has been assembled automatically from the class
  1163. ;   sources and may therefore look somehow unstructured and chaotic ;) **
  1164.  
  1165. ;/* class_DisplayObject */
  1166. #TROB_DisplayObject  =#TRTG_OBJ+$3C  ;/* A basic display object */
  1167.  
  1168. #TRDO_QuickHelpString=#TRTG_OAT+$1E3
  1169.  
  1170. ;/* class_Group */
  1171. #TRGR_Horiz=#TAG_USER+201   ;/* Horizontal group */
  1172. #TRGR_Vert= #TAG_USER+202   ;/* Vertical group */
  1173. #TRGR_End=  #TRTG_OAT2+$4B ;/* End of a group */
  1174.  
  1175. #TRGR_PROPSHARE =$00000000  ;/* Default: Divide objects proportionally */
  1176. #TRGR_EQUALSHARE=$00000001  ;/* Divide objects equally */
  1177. #TRGR_PROPSPACES=$00000002 ;/* Divide spaces proportionally */
  1178. #TRGR_ARRAY     =$00000004  ;/* Top-level array group */
  1179.  
  1180. #TRGR_ALIGN     =$00000008  ;/* Align resizeable objects in secondary dimension */
  1181. #TRGR_CENTER    =$00000010 ;/* Center unresizeable objects in secondary dimension */
  1182.  
  1183. #TRGR_FIXHORIZ  =$00000020 ;/* Don't allow horizontal resizing */
  1184. #TRGR_FIXVERT   =$00000040  ;/* Don't allow vertical resizing */
  1185. #TRGR_INDEP     =$00000080  ;/* Group is independant of surrounding array */
  1186.  
  1187. ;/* class_Space */
  1188. #TROB_Space =#TRTG_OBJ+$285       ;/* The spaces class */
  1189. #TRST_NONE  =1                     ;/* No space */
  1190. #TRST_SMALL =2                    ;/* Small space */
  1191. #TRST_NORMAL=3                   ;/* Normal space (default) */
  1192. #TRST_BIG   =4                      ;/* Big space */
  1193.  
  1194. ;/* class_CheckBox */
  1195. #TROB_CheckBox=#TRTG_OBJ+$2F ; /* A checkbox gadget */
  1196.  
  1197. ;/* class_Object */
  1198. #TROB_Object=#TRTG_OBJ+$3D   ;/* A rootclass object */
  1199.  
  1200. ;/* class_Cycle */
  1201. #TROB_Cycle      =#TRTG_OBJ+$36    ;/* A cycle gadget */
  1202.  
  1203. #TRCY_MX         =$00010000           ;/* Unfold the cycle gadget to a MX gadget */
  1204. #TRCY_RIGHTLABELS=$00020000  ;/* Put the labels to the right of a MX gadget */
  1205.  
  1206. ;/* class_DropBox */
  1207. #TROB_DropBox=#TRTG_OBJ+$38  ;/* An icon drop box */
  1208.  
  1209. ;/* class_Scroller */
  1210. #TROB_Scroller=#TRTG_OBJ+$35  ;/* A scroller gadget */
  1211.  
  1212. #TRSC_Total=#TRTG_OAT+$1E0
  1213. #TRSC_Visible=#TRTG_OAT+$1E1
  1214.  
  1215. ;/* class_FrameBox */
  1216. #TROB_FrameBox=#TRTG_OBJ+$32 ;/* A framing box */
  1217.  
  1218. #TRFB_GROUPING=$00000001     ;/* A grouping box */
  1219. #TRFB_FRAMING=$00000002      ;/* A framing box */
  1220. #TRFB_TEXT=$00000004         ;/* A text container */
  1221.  
  1222. ;/* class_Button */
  1223. #TROB_Button    =#TRTG_OBJ+$31 ;/* A BOOPSI button gadget */
  1224.  
  1225. #TRBU_RETURNOK  =$00010000  ;/* <Return> answers the button */
  1226. #TRBU_ESCOK     =$00020000  ;/* <Esc> answers the button */
  1227. #TRBU_SHIFTED   =$00040000  ;/* Shifted shortcut only */
  1228. #TRBU_UNSHIFTED =$00080000  ;/* Unshifted shortcut only */
  1229. #TRBU_YRESIZE   =$00100000  ;/* Button resizeable in Y direction */
  1230. #TRBT_TEXT      =0          ;/* Text button */
  1231. #TRBT_GETFILE   =1          ;/* GetFile button */
  1232. #TRBT_GETDRAWER =2          ;/* GetDrawer button */
  1233. #TRBT_GETENTRY  =3          ;/* GetEntry button */
  1234.  
  1235. ;/* class_Line */
  1236. #TROB_Line=#TRTG_OBJ+$2D      ;/* A simple line */
  1237.  
  1238. ;/* class_Palette */
  1239. #TROB_Palette=#TRTG_OBJ+$33   ;/* A palette gadget */
  1240.  
  1241. ;/* class_Slider */
  1242. #TROB_Slider=#TRTG_OBJ+$34 ;/* A slider gadget */
  1243.  
  1244. #TRSL_Min=#TRTG_OAT+$1DE
  1245. #TRSL_Max=#TRTG_OAT+$1DF
  1246.  
  1247. ;/* class_Progress */
  1248. #TROB_Progress=#TRTG_OBJ+$3A         ;/* A progress indicator */
  1249.  
  1250. ;/* class_Text */
  1251. #TROB_Text=#TRTG_OBJ+$30 ;/* A line of text */
  1252.  
  1253. #TRTX_CLIPPED=$00010000
  1254.  
  1255. ;/* class_Listview */
  1256. #TROB_Listview=#TRTG_OBJ+$39    ;/* A listview gadget */
  1257.  
  1258. #TRLV_Top           =#TRTG_OAT+$1E2
  1259.  
  1260. #TRLV_READONLY      =$10000 ;/* A read-only list */
  1261. #TRLV_SELECT        =$20000 ;/* You may select an entry */
  1262. #TRLV_SHOWSELECTED  =$40000 ;/* Selected entry will be shown */
  1263. #TRLV_NOCURSORKEYS  =$80000 ;/* Don't use arrow keys */
  1264. #TRLV_NONUMPADKEYS  =$100000 ;/* Don't use numeric keypad keys */
  1265. #TRLV_FWFONT        =$200000 ;/* Use the fixed-width font */
  1266. #TRLV_NOGAP         =$400000  ;/* Don't leave a gap below the list */
  1267.  
  1268. ;/* class_String */
  1269. #TROB_String=#TRTG_OBJ+$37   ;/* A string gadget */
  1270.  
  1271. #TRST_INVISIBLE        =$00010000
  1272. #TRST_NORETURNBROADCAST=$00020000
  1273.  
  1274. ;/* class_Image */
  1275. #TROB_Image =#TRTG_OBJ+$3B    ;/* An image */
  1276. #TRIM_BOOPSI=$00010000       ;/* Use a BOOPSI IClass image */
  1277.  
  1278. ;/* End of automatically assembled code */ ; NOT FOR BLITZ IT AIN'T !
  1279.  
  1280. ;/* ////////////////////////////////////////////////////////////////////// */
  1281. ;/* /////////////////////////////////////////////////////////// The End // */
  1282. ;/* ////////////////////////////////////////////////////////////////////// */
  1283.  
  1284. ; This newtype is needed for the project taglist. See demo listings and the
  1285. ; documentation for more.
  1286.  
  1287. NEWTYPE .taggies
  1288. a1.l:b1.l:c1.l:d1.l:e1.l:f1.l:g1.l:h1.l:i1.l:j1.l:k1.l:l1.l:m1.l:n1.l:o1.l:p1.l:q1.l:r1.l:s1.l:t1.l:u1.l:v1.l
  1289. w1.l:x1.l:y1.l:z1.l
  1290. a2.l:b2.l:c2.l:d2.l:e2.l:f2.l:g2.l:h2.l:i2.l:j2.l:k2.l:l2.l:m2.l:n2.l:o2.l:p2.l:q2.l:r2.l:s2.l:t2.l:u2.l:v2.l
  1291. w2.l:x2.l:y2.l:z2.l
  1292. a3.l:b3.l:c3.l:d3.l:e3.l:f3.l:g3.l:h3.l:i3.l:j3.l:k3.l:l3.l:m3.l:n3.l:o3.l:p3.l:q3.l:r3.l:s3.l:t3.l:u3.l:v3.l
  1293. w3.l:x3.l:y3.l:z3.l
  1294. a4.l:b4.l:c4.l:d4.l:e4.l:f4.l:g4.l:h4.l:i4.l:j4.l:k4.l:l4.l:m4.l:n4.l:o4.l:p4.l:q4.l:r4.l:s4.l:t4.l:u4.l:v4.l
  1295. w4.l:x4.l:y4.l:z4.l
  1296. End NEWTYPE
  1297.  
  1298.  
  1299.